package com.livesource.client.web.mainMenu;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.livesource.client.LiveSourceGlobalVariables;

/**
 * 
 * @UserInterface
 */
public class LiveSourceMenu extends VerticalPanel {

	public static final String MENU_LIVESOURCE = "LiveSource";
	public static final String MENU_PROJECT_BACKLOG = "EasyBacklog";
	public static final String MENU_LIVE_TASK_BOARD = "Live Task Board";
	public static final String MENU_FEATURES = "Features";
	public static final String MENU_SOURCE_CODE = "Source Code";
	public static final String MENU_DOCUMENTATION = "Documentation";
	public static final String MENU_METRICS = "SourceMetrics";

	public static final PopupPanel popup = new PopupPanel();

	public LiveSourceMenu(Panel showPanel, String projectID, String userID) {

		LiveSourceGlobalVariables.userID = userID;

		LiveSourceGlobalVariables.showPanel = showPanel;

		this.add(new MenuAnchors("<font size=3><b>" + MENU_PROJECT_BACKLOG
				+ "</b></font>", MENU_PROJECT_BACKLOG, projectID));

		Label space = new Label(" ");
		space.setHeight("10px");
		this.add(space);

		this.add(new MenuAnchors("<font size=3><b>" + MENU_LIVESOURCE
				+ "</b></font>", MENU_LIVESOURCE, projectID));

		this.add(new MenuAnchors(MENU_LIVE_TASK_BOARD, MENU_LIVE_TASK_BOARD,
				projectID));

		this.add(new MenuAnchors(MENU_FEATURES, MENU_FEATURES, projectID));

		this.add(new MenuAnchors(MENU_SOURCE_CODE, MENU_SOURCE_CODE, projectID));

		Label space2 = new Label(" ");
		space2.setHeight("10px");
		this.add(space2);

		this.add(new MenuAnchors("<font size=3><b>" + MENU_METRICS
				+ "</b></font>", MENU_METRICS, projectID));

		popup.setSize("100%", "100%");
	}

}
